package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 商品对象 tb_goods
 * 
 * @author ruoyi
 * @date 2024-04-07
 */
public class TbGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 商品保障表id */
    @Excel(name = "商品保障表id")
    private Long protectionId;

    /** 分类id */
    @Excel(name = "分类id")
    private Long classificationId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品优惠后价格 */
    @Excel(name = "商品优惠后价格")
    private BigDecimal goodsDiscountPrice;

    /** 商品详情 */
    @Excel(name = "商品详情")
    private String goodsDetail;

    /** 商品原价 */
    @Excel(name = "商品原价")
    private BigDecimal goodsPrice;

    /** 配送方式 */
    @Excel(name = "配送方式")
    private String modeDistribution;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String goodsImage;

    /** 商品库存 */
    @Excel(name = "商品库存")
    private Long goodsInventory;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private String isDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProtectionId(Long protectionId) 
    {
        this.protectionId = protectionId;
    }

    public Long getProtectionId() 
    {
        return protectionId;
    }
    public void setClassificationId(Long classificationId) 
    {
        this.classificationId = classificationId;
    }

    public Long getClassificationId() 
    {
        return classificationId;
    }
    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }
    public void setGoodsDiscountPrice(BigDecimal goodsDiscountPrice) 
    {
        this.goodsDiscountPrice = goodsDiscountPrice;
    }

    public BigDecimal getGoodsDiscountPrice() 
    {
        return goodsDiscountPrice;
    }
    public void setGoodsDetail(String goodsDetail) 
    {
        this.goodsDetail = goodsDetail;
    }

    public String getGoodsDetail() 
    {
        return goodsDetail;
    }
    public void setGoodsPrice(BigDecimal goodsPrice) 
    {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsPrice() 
    {
        return goodsPrice;
    }
    public void setModeDistribution(String modeDistribution) 
    {
        this.modeDistribution = modeDistribution;
    }

    public String getModeDistribution() 
    {
        return modeDistribution;
    }
    public void setGoodsImage(String goodsImage) 
    {
        this.goodsImage = goodsImage;
    }

    public String getGoodsImage() 
    {
        return goodsImage;
    }
    public void setGoodsInventory(Long goodsInventory) 
    {
        this.goodsInventory = goodsInventory;
    }

    public Long getGoodsInventory() 
    {
        return goodsInventory;
    }
    public void setIsDelete(String isDelete) 
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("protectionId", getProtectionId())
            .append("classificationId", getClassificationId())
            .append("goodsName", getGoodsName())
            .append("goodsDiscountPrice", getGoodsDiscountPrice())
            .append("goodsDetail", getGoodsDetail())
            .append("goodsPrice", getGoodsPrice())
            .append("modeDistribution", getModeDistribution())
            .append("goodsImage", getGoodsImage())
            .append("goodsInventory", getGoodsInventory())
            .append("isDelete", getIsDelete())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
